]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
volume: Skip volume-change feedback while playing
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 22 Nov 2019 17:37:25 +0000 (18:37 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Nov 2019 14:16:51 +0000 (15:16 +0100)
The audio feedback for volume changes is useful when nothing is outputting
sound, but only then. Skip the sound notification in that case.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/53

js/ui/status/volume.js

index 87b24e04a088d8d3f567ddf13ef62d213febd640..5ffb18989f3e7d2d2d67b328cf0b23250ae50e2c 100644 (file)
@@ -138,6 +138,9 @@ var StreamSlider = class {
     }
 
     _notifyVolumeChange() {
+        if (this._stream.state === Gvc.MixerStreamState.RUNNING)
+            return; // feedback not necessary while playing
+
         if (this._volumeCancellable)
             this._volumeCancellable.cancel();